<template>
  <div v-loading="loading" style="padding: 30px;">
    <el-container>
      <el-header>
        <div style=" text-align: center;font-size: 16px;font-weight: bold;" v-html="form.title" />
      </el-header>
      <el-main>
        <div v-html="form.context" />
      </el-main>
    </el-container>
  </div>
</template>

<script>
import { getSysRemindEvent } from '@/api/system/sysremindevent/sysRemindEvent'

export default {
  components: {},
  props: {},
  data() {
    return {
      // 遮盖层
      loading: false,
      form: {
        title: undefined,
        context: undefined
      }
    }
  },
  watch: {},
  created() {
    this.$bus.$emit('async_done')
  },
  methods: {
    init(data) {
      if (data.id) {
        this.loading = true
        getSysRemindEvent(data.id).then(response => {
          if (response.data !== null) {
            this.form = response.data
          }
          this.loading = false
        })
      }
    }
  }
}
</script>

<style scoped>

</style>
